package com.lingkun.demo.sys.mapper;

import com.lingkun.demo.sys.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小龙
 * @since 2021-04-24
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {


    @Select("SELECT   menu_id   from  sys_menu   where parent_id = #{parent}")
    List<String> listMenuIds(String parent);

    @Select("select role_id from  role_menu where menu_id=#{id}")
    List<String> searchMenuRoleIds(String id);
}
